package com.jeespring.aop.controller;

import com.jeespring.aop.annotations.Permission;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description UserController
 * @author 张朝阳
 * @date 2021/4/8 16:31
 */
@RestController
@RequestMapping("/user")
public class UserController {


    @Permission
    @RequestMapping("/query")
    public String query(String name){
        return "success";
    }


    @RequestMapping("/add")
    public void add(){

    }

    @RequestMapping("/delete")
    public void delete(){

    }
}
